﻿
using System;

namespace RuoVea.ExDto;

/// <summary>
/// 分页参数
/// </summary>
public class PageParam
{
    /// <summary>
    /// 当前页
    /// 默认1
    /// </summary>
    public virtual int PageNo { get; set; } = 1;

    /// <summary>
    /// 分页大小
    /// 默认20
    /// </summary>
    public virtual int PageSize { get; set; } = 20;

    /// <summary>
    /// 排序列
    /// </summary>
    public virtual string Sidx { get; set; }

    /// <summary>
    /// 排序类型 Desc/Asc
    /// </summary>
    public virtual string Sord { get; set; } = "asc";

    /// <summary>
    /// 搜索开始时间
    /// </summary>
    public virtual DateTime? BeginTime { get; set; }

    /// <summary>
    /// 搜索结束时间
    /// </summary>
    public virtual DateTime? EndTime { get; set; }

}

/// <summary>
/// 分页参数
/// </summary>
public class PageParam<T> : PageParam
{
    /// <summary>
    /// 查询条件
    /// </summary>
    public T Filter { get; set; }
}

